<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>准备考试</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='css/style.css') }}">
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
    <style>
        body {
            background-color: #f8f9fa;
            margin: 0;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
        }
        .container {
            width: 100%;
            max-width: 800px;
            height: 100%;
            max-height: 80vh;
            background-color: white;
            padding: 30px;
            box-sizing: border-box;
            text-align: center;
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
            display: flex;
            flex-direction: column;
            justify-content: center;
        }
        h1 {
            margin-bottom: 20px;
            font-weight: 300;
            color: #343a40;
            font-size: 2.5rem;
        }
        p {
            color: #495057;
            font-size: 1.2rem;
            margin-bottom: 30px;
        }
        .list-group {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .list-group-item {
            background-color: #007bff;
            color: white;
            border: none;
            border-radius: 4px;
            margin-bottom: 15px;
            font-size: 1.2rem;
            padding: 15px 30px;
            transition: background-color 0.3s ease;
            width: 80%;
            max-width: 300px;
        }
        .list-group-item:hover {
            background-color: #0056b3;
            cursor: pointer;
        }
        .list-group-item:active {
            background-color: #004085;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>准备开始考试</h1>
        <p>请选择要进行的考试:</p>
        <form method="POST">
            <div class="list-group">
                {% for exam in exams %}
                    <button type="submit" name="exam_name" value="{{ exam.name }}" class="list-group-item list-group-item-action">
                        {{ exam.title }}
                    </button>
                {% endfor %}
            </div>
        </form>
    </div>
</body>
</html>
